public class test {
    public static void main(String[] args) {
       /*Person p1 =new Person("老王",30);
       Dog d=new Dog(2,"黑");
       p1.keepPet(d,"骨头");

        Person p2 =new Person("老李",32);/  
        Cat c=new Cat(3,"灰");
        p2.keepPet(c,"鱼");*/
        Person p=new Person("老王",30);
        Dog d=new Dog(2,"黑");
        Cat c=new Cat(3,"灰");
        p.keepPet(d,"骨头");
        p.keepPet(c,"鱼");
    }
}
